package com.lotter.common.enumobject;

/**
 * 比赛状态
 * @author zhangzechi
 *
 */
public enum CashStatusEnum {
	

	STOP(0, "中断"),DELAY(1, "延期"),NOTCONFIRM(2, "无法确认"), FINISH(3, "结束");

	private int code;
	private String desc;

	private CashStatusEnum(int code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
	
	public static String getName(int i){
		for (CashStatusEnum type : values()) {
			if(type.getCode()==i){
				return type.getDesc();
			}
		}
		return null;
	}

}
